﻿@model Project_KhuyenMaiVang.Models.MemberDTO

@{
    ViewBag.Title = "EditThanhVien";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Cập Nhật Thành Viên</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Thông Tin Thành Viên</legend>

        <div class="editor-label">
            @Html.Label("Tài Khoản Paypal")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TaiKhoanPayPal)
            @Html.ValidationMessageFor(model => model.TaiKhoanPayPal)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.Label("Địa Chỉ")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DiaChi)
            @Html.ValidationMessageFor(model => model.DiaChi)
        </div>

        <div class="editor-label">
            @Html.Label("Tên Khách Hàng")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TenKhachHang)
            @Html.ValidationMessageFor(model => model.TenKhachHang)
        </div>

        <div class="hidden">
            @Html.LabelFor(model => model.IDAccount)
        </div>
        <div class="hidden">
            @Html.EditorFor(model => model.IDAccount)
            @Html.ValidationMessageFor(model => model.IDAccount)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "QuanLyThanhVien")
</div>

<script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")"></script>

<script type="text/javascript">
    $(document).ready(function () {
        $(".hidden").hide()
    })
</script>